function toast(msg) {
  var
    toast = document.createElement('div'),
    masking = document.createElement('div')
  toast.addEventListener('animationend', function () {
    this.parentNode.removeChild(this)
    // masking.parentNode.removeChild(masking)
  })
  // masking.className = "masking"
  toast.className = "toast";
  toast.innerText = msg;
  // document.body.appendChild(masking)
  document.body.appendChild(toast)

}

var loading = {
  open: function(){
    $('.luopan_bg_color').css('display','block')
    $('#luopan_box').css('display', 'block')
  },
  close: function(){
    $('.luopan_bg_color').css('display', 'none')
    $('#luopan_box').css('display', 'none')
  }
}